[SUBJECT]
Description=Converts bewteen different units of length
ImageIndex=-1
Folder=Mathematics


[BODY_TEXT]
;<!-- Cut-N-Paste JavaScript from ISN Toolbox 
;Copyright 1996, Infohiway Server Network.  Restricted use is hereby
;granted (both personal and commercial use OK so long as this code is 
;not *directly* sold), providing this notice is buried somewhere deep
;in your HTML document.  A link to http://www.infohiway.com is always 
;appreciated, but is absolutely and positively not necessary. :-) -->
;<script language="JavaScript">
;
;<!-- Hide JavaScript from Java-Impaired Browsers
;
;function initArray() {
;
;  this.length = initArray.arguments.length;
;
;  for (var i = 0; i < this.length; i++) {
;
;    this[i] = initArray.arguments[i];
;
;    }
;
;  }
;
;/* Please don't ask about this work-around. It works... We're sure arrays
;
;    will be better supported soon. */
;
;var isn01 = new initArray("4b","5b","8b","8b");
;
;isn01[0] = "~01~10.3937~20.03281~30.01094~40.01~50.0004971~60.00001~70.000006214~8";
;
;isn01[1] = "~02.540~11~20.08333~30.02778~40.0254~50.001263~60.0000254~70.00001578~8";
;
;isn01[2] = "~030.48~112~21~30.3333~40.3048~50.01515~60.0003048~70.0001894~8";
;
;isn01[3] = "~091.44~136~23~31~40.9144~50.04545~60.0009144~70.0005682~8";
;
;isn01[4] = "~0100~139.37~23.281~31.0936~41~50.04971~60.001~70.0006214~8";
;
;isn01[5] = "~02012~1792~266~322~420.12~51~60.0212~70.0125~8";
;
;isn01[6] = "~0100000~139370~23281~31093.6~41000~549.71~61~70.6214~8";
;
;isn01[7] = "~0160934~163360~25280~31760~41609~580~61.609~71~8";
;
;
;
;
;
;function lenCon() {
;
;  // First, get the variables checked by the user
;
;  for (var i = 0; i < 8; i++) {
;
;    if (document.isnform01.leni[i].checked) {
;
;      leni = i;
;
;      leninm = document.isnform01.leni[i].value;
;
;      }
;
;    }
;
;  for (var i = 0; i < 8; i++) {
;
;    if (document.isnform01.leno[i].checked) {
;
;      leno = i;
;
;      lenonm = document.isnform01.leno[i].value;
;
;      }
;
;    }
;
;  // Now grab the number input by user and parse to be sure numeric
;
;  useri = document.isnform01.leninp.value;
;
;  if (useri == 0) {
;
;    useri = 1;
;
;    document.isnform01.leninp.value = useri;
;
;    }
;
;  mulstr = isn01[leni];
;
;  picker = "~" + leno;
;
;  ps = mulstr.indexOf(picker);
;
;  leno++;
;
;  picker = "~" + leno;
;
;  ps1 = mulstr.indexOf(picker);
;
;  mulstr = mulstr.substring((ps + 2),ps1);
;
;  ps = (useri * mulstr);
;
;  picker = "";
;
;  picker += ps;
;
;  ps1 = picker.indexOf(".");
;
;  if (ps1 > -1) {
;
;    // Correct for binary/floating point conversion error
;
;    ps = ps + .000001;
;
;    picker = "";
;
;    picker += ps;
;
;    ps2 = picker.indexOf("e");
;
;    if (ps2 < 0) {
;
;      picker = picker.substring(0,(ps1 + 6));
;
;      }
;
;    if (ps2 == 0 || ps2 > 0) {
;
;      ps3 = picker.indexOf("00000");
;
;      if (ps3 > 0) {
;
;        picker = picker.substring(0,ps3 + 1) + picker.substring(ps2,picker.length);
;
;        }
;
;      }
;
;    }
;
;  picker = useri + " " + leninm + " = " + picker + " " + lenonm;
;
;  document.isnform01.lenout.value = picker;
;
;  }
;
;
;
;// End Hiding -->
;
;
;
;</script>
;<form name="isnform01">
;<table border="1" width="486" summary="">
;
;<tr><td colspan="9" align="center"><font color="blue"><b>`caption`</b></font></td></tr>
;
;<tr><td colspan="9" valign="top"><font size="1"><b>First, type the number you wish converted here: </B>
;
;<input type="text" name="leninp" size="30" value="" onChange="lenCon();"><br><b>Then, click radio buttons for desired conversion:</font></B></td></tr>
;
;<tr><td align="center"><font color="red" size="1"><b>From:</b></font></td>
;
;<td align="center" valign="top"><font size="1">Centimeters<br><input type="radio" name="leni" value="Centimeters" checked onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Inches<br><input type="radio" name="leni" value="Inches" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">feet<br><input type="radio" name="leni" value="Feet" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Yards<br><input type="radio" name="leni" value="Yards" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Meters<br><input type="radio" name="leni" value="Meters" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Chains<br><input type="radio" name="leni" value="Chains" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Kilometers<br><input type="radio" name="leni" value="Kilometers" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Miles<br><input type="radio" name="leni" value="Miles" onClick = ""></font></td></tr>
;
;<tr><td align="center"><font color="red" size="1"><b>To:</b></font></td>
;
;<td align="center" valign="top"><font size="1">Centimeters<br><input type="radio" name="leno" value="Centimeters" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Inches<br><input type="radio" name="leno" value="Inches" checked onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Feet<br><input type="radio" name="leno" value="Feet" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Yards<br><input type="radio" name="leno" value="Yards" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Meters<br><input type="radio" name="leno" value="Meters" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Chains<br><input type="radio" name="leno" value="Chains" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Kilometers<br><input type="radio" name="leno" value="Kilometers" onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Miles<br><input type="radio" name="leno" value="Miles" onClick = ""></font></td></tr>
;
;<tr><td colspan="9" align="center" valign="top"><font size="1"><input type="button" value=" Click for Conversion " onClick="lenCon();"> 
;<input type="reset" value=" Reset Values "><br><input type="text" name="lenout" size="60" value="" onClick="lenCon();">
;
;</font></td></tr>
;
;</table></form>
;
;<p>
;
;


[`Caption`]
Kind=S
Value=Length Equivalents


